In this set of exercises, we clone and work on the GitHub repository you have created in the previous session.
In order to do the following exercises, you should have gone through the steps described in the setup information for the workshop. Specifically, you should…
Git via
RStudioHTTPS for GitHubGit tab. To make extra
sure that everything worked, let’s check the Git status of
our project via the Terminal in RStudio.
Terminal in
RStudio uses via Tools -> Global Options
-> Terminal. If you use Windows, you should choose
Git Bash (which you should have installed with
Git for Windows).
Now that the project is set up and in sync with the remote
repository, we can start working on it. Modify the README file (just
add, remove or edit a few words). If you have not already done so, add
(stage & commit) the R Markdown report (and its
resulting output) you generated yesterday to your
repository/project.
Git.
Git tab in RStudio and their status will be
indicated as modified (M) or untracked (??).
You can edit the README via the small pen icon next displayed above the content of your README file on the website of your GitHub repository.
Remember that if you edit a file directly via the GitHub web interface, you also need to make a commit (and add a commit message).